package com.sky.mapper;

import cn.mybatis.mp.core.mybatis.mapper.MybatisMapper;
import com.sky.entity.Admins;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
* @author 31827
* @description 针对表【admins(管理员表)】的数据库操作Mapper
* @createDate 2024-11-21 12:45:18
* @Entity com.sky.entity.Admins
*/
@Mapper
public interface AdminsMapper extends MybatisMapper<Admins> {

    @Select("<script>" +
            "SELECT * FROM admins WHERE admin_id IN " +
            "<foreach item='item' index='index' collection='list' open='(' separator=',' close=')'>" +
            "#{item}" +
            "</foreach>" +
            "</script>")
    List<Admins> selectBatchIds(List<Integer> adminIdList);

}
